#pragma once
#include <cppunit/extensions/HelperMacros.h>

class CHttpTest: public CPPUNIT_NS::TestCase
{
    CPPUNIT_TEST_SUITE( CHttpTest );
    CPPUNIT_TEST( TestSyncWinHttp );
    CPPUNIT_TEST( TestAsyncWinHttp );
    CPPUNIT_TEST_SUITE_END();
public:
    CHttpTest( void );
    virtual ~CHttpTest( void );


    virtual void setUp();
    virtual void tearDown();

    void TestSyncWinHttp();
    void TestAsyncWinHttp();

    static void DownloadCallback( DWORD dwStatus, DWORD dwDownloaded, DWORD dwTotal );
};

